
export interface CommonParams {
    page: number
    limit: number
    keyword?: string
}

export interface Result<T> {
    code: number
    msg: string
    data: T
}

export interface CreateUserDto {
    username: string
    password: string
    userId?: string
    avatar?: string
    nickname?: string
    email?: string
    phone?: string
}

export interface CreateGameResultDto {
    isRandom: boolean // 是否随机生成骰子点数
    dice1?: string,
    dice2?: 3,
    dice3?: 3,
}

export interface DisposeOddRuleDto {
    betType: string
    isActive: boolean
    oddsValue: number
    ruleId?: string
}

export interface OddRulesQueryDto extends CommonParams {
    isActive?: number
}

export interface BetParamsDTO {
    betAmount: number
    betCount: number
    betType: string
    oddsName: string
    oddsValue: number
    value: any
    userId: string
    gameId: string
}

export interface BetFormDTO {
    gameUserId: string
    gameResultId: string
    totalAmount: number
    betParams: BetParamsDTO[]
}

export interface CreateDictDTO {
    dictId?: string
    phone: string
    value: string
    stock: string
    price: number
    desc: string
}
